<html>
  <head>
    <script src="js/jquery-1.4.2.js" ></script>
    <script type="text/javascript">
    
   
    	 
    function onResult(resultObject)
    {
    	 $("#dvResult").html("Full response: " +resultObject);
    }

    function onClick()
    {
    	jQuery.getJSON( "JQueryTest.php", onResult );
    }
    </script>
  </head>
  <body>
    <form>
      <input type="button" value="get Value" onclick="onClick()" />
      <div id="dvResult"></div>
    </form>
  </body>
  
</html>